home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr49
/
cuj0593.zip
/
1105034A
< prev
next >
Wrap
Text File
|
1993-05-16
|
288b
|
16 lines
// Copyright (C) 1992 by Nicholas Wilt. All rights reserved.
template<class T>
void
InsertionSort(T *base, int n)
{
for (int i = 1; i < n; i++) {
T temp = base[i];
for (int j = i; j && temp < base[j - 1]; j--)
base[j] = base[j - 1];
base[j] = temp;
}
}